#ifndef __PSEUDO_PKT_H
#define __PSEUDO_PKT_H

#include <netinet/ip.h>
#include <sys/time.h>

#define SAMPLE_SIZE 128     /* sample size of payload */
#define LENGTH(a,b) (a>b)?a:b

typedef struct _pseudo_pkt{
  //#struct timeval timestamp;
  u_int64_t tv_sec;
  u_int64_t tv_usec;
  u_int32_t saddr;
  u_int32_t daddr;
  u_int16_t  protocol;
  u_int16_t sport;
  u_int16_t dport;

  u_char payload[SAMPLE_SIZE];
  u_int16_t packet_size;
  u_int16_t payload_size;
  u_int32_t tag;                // 256 signature tag possible
} pseudo_pkt;

//pseudo_pkt* get_pseudo_pkt(u_char *);
void print_pkt(pseudo_pkt *, int debug);

#endif 
